package com.stefanie.study.dp;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: stefanie-zy
 * @time: 2024/7/9-15:59
 * @description: 装饰模式-具体装饰类
 */
@Slf4j
public class ConcreteDecorator extends Decorator {

    public ConcreteDecorator(Component component) {
        super(component);
    }

    @Override
    public void display() {
        super.display();
        add();
    }

    public void add(){
        log.info("具体装饰类-这个是新装饰的功能");
    }
}
